

package com.hazelcast.query.extractor;

/**
 * Enables collecting values extracted in a {@link com.hazelcast.query.extractor.ValueExtractor}
 *
 * @param <T> type of the collected value
 */
@FunctionalInterface
public interface ValueCollector<T> {

    /**
     * Collects a value passed as an argument
     *
     * @param value value to be collected
     */
    void addObject(T value);

}
